/**
 * 2015-12-18
 * Student.java
 * author:sherlochao
 */
package com.sherlochao.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author yinchao
 *
 */
@Entity
@Table(name = "student")
public class Student {
	
	@Id
	@Column(name = "id", nullable = false, length = 12)
	private String studentId;
	
	@Column(name = "student_name", nullable = false, length = 32)
	private String studentName;
	
	@Column(name = "student_birthdate", length = 32)
	private String studentBirthdate; 
	
	@Column(name = "teacher_id", nullable = false, length = 9)
	private String teacherId;

	
	
	public Student() {
		super();
	}

	public Student(String studentId, String studentName,
			String studentBirthdate, String teacherId) {
		super();
		this.studentId = studentId;
		this.studentName = studentName;
		this.studentBirthdate = studentBirthdate;
		this.teacherId = teacherId;
	}

	public Student(String studentId, String studentName, String teacherId) {
		super();
		this.studentId = studentId;
		this.studentName = studentName;
		this.teacherId = teacherId;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getStudentBirthdate() {
		return studentBirthdate;
	}

	public void setStudentBirthdate(String studentBirthdate) {
		this.studentBirthdate = studentBirthdate;
	}

	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	@Override
	public String toString() {
		return "Student [studentId=" + studentId + ", studentName="
				+ studentName + ", studentBirthdate=" + studentBirthdate
				+ ", teacherId=" + teacherId + "]";
	}

	
}
